<!DOCTYPE html>
<html>
<head>
    <meta name="layout" content="main" />
    <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">
    <g:set var="entityName" value="${message(code: 'contact.label', default: 'Contact')}" />
    <title>借款人(个人)详情</title>
    <style>
    .contact-stat{
        padding: 8px 0px;
        text-align: center;
    }
    .contact-stat span{
        font-size: 13px;
        color: #88898c;
        margin-bottom: 10px;
    }
    .contact-stat strong{
        font-size: 13px;
        word-wrap: break-word;
    }
    .nav-tabs{
        border-bottom: none;
    }
    .hpanel > .panel-footer, .hpanel > .panel-section{
        background: #f9f9f9;
    }
    .flex{
        display: flex;justify-content: center;align-items: center;
    }
    .newFontSize{
        font-size: 12px;
    }
    table>tbody>tr>td, table>tbody>tr>th,.table>tfoot>tr>td, table>tfoot>tr>th, table>thead>tr>td, table>thead>tr>th{
        padding: 8px;
        line-height: 1.42857143;
        white-space: nowrap;
    }
    .red{
        color: #e74c3c;
    }
    </style>
</head>
<body class="fixed-navbar fixed-sidebar">

<div class="small-header">
    <div class="hpanel">
        <div class="panel-body">
            <div id="hbreadcrumb" class="pull-right navFloatRight">
                <ol class="hbreadcrumb breadcrumb">
                    <li>
                        <span>CINDTATA PLS</span>
                    </li>
                    <li>
                        <g:link action="index">
                            <span>借款人(个人)</span>
                        </g:link>
                    </li>
                    <li class="active">
                        <span>借款人(个人)详情</span>
                    </li>
                </ol>
            </div>
        </div>
    </div>
</div>

<div class="content animate-panel">
    %{--押品信息--}%
    <div class="row">
        <div class="hpanel hgreen" style="">
            <div class="panel-heading">
                <div class="panel-tools">
                    <g:link action="createContactReport" id="${this?.contact?.id}" class="btn btn-info btn-xs"><i class="fa fa-edit"></i>生成报告</g:link>
                    <a class="showhide"><i class="fa fa-chevron-up"></i></a>
                </div>
                主要信息
            </div>

            <div class="panel-body">
                <div class="col-md-12 text-center">
                    <div class="col-md-3" style="width: 25%;">
                        <h3 class="font-extra-bold m-b-xs text-center">
                            <small style="font-size: 16px;">姓名 :</small>
                            <span class="nameFormat">${contactDetail?.fullName?contactDetail?.fullName:'-'}</span>
                        </h3>
                    </div>
                    <div class="col-md-3" style="width: 25%;">
                        <h3 class="font-extra-bold m-b-xs text-center">
                            <small style="font-size: 16px;">手机号 :</small>
                            <span class="cellphoneFormat">${contactDetail?.cellphone?contactDetail?.cellphone:'-'}</span>
                        </h3>
                    </div>
                    <div class="col-md-3" style="width: 25%;">
                        <h3 class="font-extra-bold m-b-xs text-center">
                            <small style="font-size: 16px;">当前处置状态 :</small>
                            <span class="totalPrice">${com.cindata.ContactRiskWarningDisposition.findAllByContact(contactDetail).sort{a, b -> a.id > b.id ? -1 : 1 }[0]?.status ?:'-'}</span>
                        </h3>
                    </div>
                    <div class="col-md-3" style="width: 25%;">
                        <h3 class="font-extra-bold m-b-xs text-center">
                            <small style="font-size: 16px;">潜在风险 :</small>
                            <g:if test="${contactDetail?.creditScore>=0&&contactDetail?.creditScore<=30}"><span style="color: #E51C23">高</span></g:if>
                            <g:elseif test="${contactDetail?.creditScore>30&&contactDetail?.creditScore<=70}"><span style="color: #FF9800">中</span></g:elseif>
                            <g:elseif test="${contactDetail?.creditScore>70}"><span style="color: #62CB31">低</span></g:elseif>
                            <g:else>-</g:else>
                        </h3>
                    </div>
                </div>
            </div>

            <div class="panel-footer contact-footer">
                <div class="row">
                    <div class="col-md-1" style="width: 16.6%;">
                        <div class="contact-stat">
                            <span>证件类型</span>
                            <strong>${contactDetail?.identityType?.name ? contactDetail?.identityType?.name : '-'}</strong>
                        </div>
                    </div>

                    <div class="col-md-1" style="width: 16.6%;">
                        <div class="contact-stat">
                            <span>证件号码</span>
                            <strong class="certificateFormat">${contactDetail?.idNumber ? contactDetail?.idNumber : '-'}</strong>
                        </div>
                    </div>

                    <div class="col-md-1" style="width: 16.6%;">
                        <div class="contact-stat">
                            <span>家庭住址</span>
                            <strong>${contactDetail?.address}</strong>
                        </div>
                    </div>

                    <div class="col-md-1" style="width: 16.6%;">
                        <div class="contact-stat">
                            <span>户口所在地</span>
                            <strong>${contactDetail?.householdAddress}</strong>
                        </div>
                    </div>

                    <div class="col-md-1" style="width: 16.6%;">
                        <div class="contact-stat">
                            <span>户口性质</span>
                            <strong>${contactDetail?.householdType}</strong>
                        </div>
                    </div>

                    <div class="col-md-1" style="width: 16.6%;">
                        <div class="contact-stat">
                            <span>工作单位</span>
                            <strong>${contactDetail?.workUnitName}</strong>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    %{--借款人信息--}%
    <div class="row">
        <div class="hpanel hgreen collapsed" style="">
            <div class="panel-heading hbuilt">
                <div class="panel-tools">
                    <a class="showhide"><i class="fa fa-chevron-up"></i></a>
                </div>
                借款人信息
            </div>
            <div class="panel-body no-padding" style="overflow-x:auto;">
                <table class="table table-striped table-bordered table-hover text-center">
                    <thead>
                    <tr>
                        <th>姓名</th>
                        <th>性别</th>
                        <th>年龄</th>
                        <th>证件类型</th>
                        <th>证件号码</th>
                        <th>联系方式</th>
                        <th>借记卡号</th>
                        <th>出生年月日</th>
                        <th>户口所在地</th>
                        <th>户口性质</th>
                        <th>工作单位</th>
                        <th>工作单位性质</th>
                        <th>职称</th>
                        <th>职务</th>
                        <th>学历</th>
                        <th>婚姻状况</th>
                        <th>家庭月收入</th>
                        <th>信用等级</th>
                        <th>信用额度</th>
                        <th>信用余额</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr>
                        <td class="nameFormat">${contactDetail?.fullName}</td>
                        <td>${contactDetail?.sex?contactDetail?.sex:'-'}</td>
                        <td>
                            <g:if test="${contactDetail?.birthday}">
                                ${com.cindata.DateUtilService.getAge(contactDetail.birthday)}
                            </g:if>
                            <g:else>
                                -
                            </g:else>
                        </td>
                        <td>${contactDetail?.identityType?contactDetail?.identityType.name:'-'}</td>
                        <td class="certificateFormat">${contactDetail?.idNumber}</td>
                        <td class="cellphoneFormat">${contactDetail?.cellphone?contactDetail?.cellphone:'-'}</td>
                        <td>${contactDetail?.debitCardNumber?contactDetail?.debitCardNumber:'-'}</td>
                        <td>
                            <g:if test="${contactDetail?.birthday}">
                                <g:formatDate date="${contactDetail?.birthday}" format="yyyy-MM-dd"></g:formatDate>
                            </g:if>
                            <g:else>
                                -
                            </g:else>
                        </td>
                        <td>${contactDetail?.householdAddress?contactDetail?.householdAddress:'-'}</td>
                        <td>${contactDetail?.householdType?contactDetail?.householdType:'-'}</td>
                        <td>${contactDetail?.workUnitName?contactDetail?.workUnitName:'-'}</td>
                        <td>${contactDetail?.workUnitNature?contactDetail?.workUnitNature.name:'-'}</td>
                        <td>${contactDetail?.title?contactDetail?.title:'-'}</td>
                        <td>${contactDetail?.position?contactDetail?.position:'-'}</td>
                        <td>${contactDetail?.degree?contactDetail?.degree:'-'}</td>
                        <td>${contactDetail?.maritalStatus?contactDetail?.maritalStatus:'-'}</td>
                        <td>${contactDetail?.fmiOnLoans?contactDetail?.fmiOnLoans:'-'}元</td>
                        <td>${contactDetail?.creditLevel?contactDetail?.creditLevel:'-'}</td>
                        <td>${contactDetail?.creditAmount?contactDetail?.creditAmount:'-'}</td>
                        <td>${contactDetail?.creditBalance?contactDetail?.creditBalance:'-'}</td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
    %{--贷款信息--}%
    <div class="row">
        <div class="hpanel hgreen collapsed" style="">
            <div class="panel-heading hbuilt">
                <div class="panel-tools">
                    <a class="showhide"><i class="fa fa-chevron-up"></i></a>
                </div>
                贷款信息
            </div>

            <div class="panel-body no-padding" style="overflow-x:auto;">
                <table class="table table-striped table-bordered table-hover text-center">
                    <thead>
                    <tr>
                        <th>贷款编号</th>
                        <th>贷款余额</th>
                        <th>贷款总额</th>
                        <th>成交总价</th>
                        <th>回收总本金</th>
                        <th>回收总利息</th>
                        <th>回收总罚息</th>
                        <th>贷款状态</th>
                        <th>逾期期数</th>
                        <th>担保机构</th>
                        <th>放款银行</th>
                        <th>抵押类型</th>
                        <th>贷款方式</th>
                        <th>是否不良</th>
                        <th>贷款时评估总价</th>
                        <th>贷款时评估单价</th>
                        <th>贷款到期日</th>
                        <th>贷款放款日</th>
                        <th>已还期数</th>
                        <th>剩余还款总期数</th>
                        <th>还款方式</th>
                        <th>月还款金额</th>
                    </tr>
                    </thead>
                    <tbody>
                    <g:each in="${mortgageList}">
                        <tr>
                            <td><g:link class="firstTd" style="color: #3498DB" action="show" controller="mortgage" id="${it?.id}">${it?.serialNumber?it?.serialNumber:'-'}</g:link></td>
                            <td>${it?.loansBalance?it?.loansBalance:'-'}元</td>
                            <td>${it?.loansAmount?it?.loansAmount:'-'}元</td>
                            <td>
                                <g:if test="${it?.loansEvaluateTotalPrice}">
                                    ${com.cindata.NumberUtil.GetFixedNumber(it?.loansEvaluateTotalPrice/10000)}（万元）
                                </g:if>
                                <g:else>
                                    -
                                </g:else>
                            </td>
                            <td>${it?.curRecycleTotalCapital?it?.curRecycleTotalCapital:'-'}元</td>
                            <td>${it?.curRecycleTotalInterest?it?.curRecycleTotalInterest:'-'}元</td>
                            <td>${it?.curRecycleTotalFine?it?.curRecycleTotalFine:'-'}元</td>
                            <td>${it?.mortgageStatus?it?.mortgageStatus?.name:'-'}</td>
                            <td>${it?.curOverdueDuration?it?.curOverdueDuration:'-'}</td>
                            <td>${it?.guaranteeInstitution?it?.guaranteeInstitution.name:'-'}</td>
                            <td>${it?.loansBankName?it?.loansBankName:'-'}</td>
                            <td>${it?.mortgageType?it?.mortgageType?.name:'-'}</td>
                            <td>${it?.mortgagePattern?it?.mortgagePattern?.name:'-'}</td>
                            <td>${it?.isNonPerformingLoan?'不良':'良'}</td>
                            <td>${it?.loansEvaluateTotalPrice?it?.loansEvaluateTotalPrice:'-'}元</td>
                            <td>${it?.loansEvaluatePrice?it?.loansEvaluatePrice:'-'}元</td>
                            <td>
                                <g:if test="${it?.endDate}">
                                    <g:formatDate date="${it?.endDate}" format="yyyy-MM-dd"></g:formatDate>
                                </g:if>
                                <g:else>
                                    -
                                </g:else>
                            </td>
                            <td>
                                <g:if test="${it?.startDate}">
                                    <g:formatDate date="${it?.startDate}" format="yyyy-MM-dd"></g:formatDate>
                                </g:if>
                                <g:else>
                                    -
                                </g:else>
                            </td>
                            <td>${it?.curHasPaymentTODuration?it?.curHasPaymentTODuration:'-'}月</td>
                            <td>${it?.remainTime?it?.remainTime:'-'}月</td>
                            <td>${it?.curRepaymentMode?it?.curRepaymentMode?.name:'-'}</td>
                            <td>${it?.monthlyRepaymentAmount?it?.monthlyRepaymentAmount:'-'}元</td>
                        </tr>
                    </g:each>
                    </tbody>
                </table>
            </div>
        </div>
    </div>

    %{--处置信息--}%
    <div class="row">
        <div class="hpanel hgreen collapsed">
            <div class="panel-heading hbuilt">
                <div class="panel-tools">
                    <g:link class="btn btn-info btn-xs" controller="ContactRiskWarningDisposition" action="create" params="[contact: this.contact?.id]"><i class="fa fa-plus"></i>新增</g:link>
                    <a class="showhide"><i class="fa fa-chevron-up"></i></a>
                </div>
                处置信息
            </div>

            <div class="panel-body no-padding">
                <div class="table-responsive">
                    <table class="table table-striped table-bordered table-hover text-center">
                        <thead>
                        <tr>
                            <g:sortableColumn property="type" title="${message(code: 'ContactRiskWarningDisposition.type.label', default: '处置措施')}"/>
                            <g:sortableColumn property="status" title="${message(code: 'ContactRiskWarningDisposition.status.label', default: '处置状态')}"/>
                            <g:sortableColumn property="description" title="${message(code: 'ContactRiskWarningDisposition.type.label', default: '处置描述')}"/>
                            <g:sortableColumn property="startDate" title="${message(code: 'ContactRiskWarningDisposition.startDate.label', default: '开始处置时间')}"/>
                            <g:sortableColumn property="endDate" title="${message(code: 'ContactRiskWarningDisposition.endDate.label', default: '计划完成时间')}"/>
                            <g:sortableColumn property="disposalOpinions" title="${message(code: 'ContactRiskWarningDisposition.type.label', default: '处置结果')}"/>
                            <g:sortableColumn property="disposalDate" title="${message(code: 'ContactRiskWarningDisposition.endDate.label', default: '操作时间')}"/>
                            <g:sortableColumn colspan="3" class="text-center" width="8%" property="comments" title="操作"/>
                        </tr>
                        </thead>
                        <tbody>
                        <g:each in="${com.cindata.ContactRiskWarningDisposition.findAllByContact(this?.contactDetail, [sort: 'modifiedDate', order: 'asc'])}">
                            <tr>
                                <td><g:link style="color: #3498DB" controller="contactRiskWarningDisposition" action="edit" id="${it?.id}">${it?.type?.name}</g:link></td>
                                <td>${it?.status}</td>
                                <td>${it?.description}</td>
                                <td><g:formatDate date="${it?.startDate}" format="yyyy-MM-dd HH:mm:ss"></g:formatDate></td>
                                <td><g:formatDate date="${it?.endDate}" format="yyyy-MM-dd HH:mm:ss"></g:formatDate></td>
                                <td>${it?.disposalOpinions}</td>
                                <td><g:formatDate date="${it?.disposalDate}" format="yyyy-MM-dd HH:mm:ss"></g:formatDate></td>
                                <td>
                                    <button class="btn btn-xs btn-primary btn-outline btnRiskWaring" data-toggle="modal" data-target="#riskWaringDisposition" dataId="${it.id}">处置</button>
                                </td>
                                <td>
                                    <g:link class="btn btn-xs btn-primary btn-outline" controller="attachment" action="create" params="[contactWarningDisposal: it?.id]">上传附件</g:link>
                                </td>
                                <td><g:link class="btn btn-xs btn-primary btn-outline" controller="contactRiskWarningDisposition" action="attachmentShow" params="[id: it?.id]">查看附件</g:link></td>
                            </tr>
                        </g:each>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>

    %{--大数据征信查询结果--}%
    <div class="row" style="margin-top: 20px;margin-bottom: 20px;">
        <div class="hpanel hblue">
            <div class="panel-body">
                <h1 class="font-light m-b-xs text-center text-success" style="font-weight: bold;">
                    大数据征信查询结果
                </h1>
            </div>
        </div>
    </div>

    %{--多平台借贷--}%
    <div class="row">
        <div class="hpanel hgreen" style="">
            <div class="panel-heading">
                <div class="panel-tools">
                    <a class="showhide"><i class="fa fa-chevron-up"></i></a>
                </div>
                多平台借贷
            </div>

            <div class="panel-body no-padding" style="overflow-x:auto;">
                %{--查询结果--}%
                <div class="col-md-12 forum-heading" style="line-height: 30px;">
                    <span class="label label-success pull-left" style="margin-top: 7px;margin-right: 15px;">查询结果</span>
                    <small class="desc">近1个月对外非银行机构负债笔数：<b class="red">22</b>笔，金额：<b class="red">10200</b>元，余额 ：<b class="red">2330</b>元，共计拒贷次数 ：<b class="red">5</b>次，申贷次数：<b class="red">20</b>笔</small>
                </div>



                <table class="table table-striped table-bordered table-hover text-center">
                    <thead>
                        <tr>
                            <td>机构名称</td>
                            <td>贷款放款总订单数</td>
                            <td>贷款已结清订单数</td>
                            <td>发放金额</td>
                            <td>余额</td>
                            <td>信用贷款时长</td>
                            <td>最近一次贷款放款时间</td>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td>P2P网贷</td>
                            <td>3</td>
                            <td>3</td>
                            <td>10000</td>
                            <td>2000</td>
                            <td>6个月</td>
                            <td>2018-06-22 16:30:41</td>
                        </tr>
                    </tbody>
                </table>
            </div>

        </div>
    </div>
    %{--司法信息--}%
    <div class="row">
        <div class="hpanel hgreen" style="">
            <div class="panel-heading">
                <div class="panel-tools">
                    <a class="showhide"><i class="fa fa-chevron-up"></i></a>
                </div>
                司法信息
            </div>

            <div class="panel-body no-padding" style="overflow-x:auto;">
                %{--查询结果--}%
                <div class="col-md-12 forum-heading" style="line-height: 30px;">
                    %{--<span class="label label-success pull-left" style="margin-top: 12px;margin-right: 15px;">查询结果</span>--}%
                    <small class="desc">近一个月被提诉<b class="red">12</b>笔，金额涉诉<b class="red">20000</b>元，涉案类型：<b class="red">刑事案件</b></small>
                </div>

                <table class="table table-striped table-bordered table-hover text-center">
                    <thead>
                    <tr>
                        <td>执行法院</td>
                        <td>立案时间</td>
                        <td>结案时间</td>
                        <td>案号</td>
                        <td>案件类型</td>
                        <td>执行标的（元）</td>
                        <td>履行情况</td>
                        <td>案件状态</td>
                        <td>原告/被告</td>
                        <td>裁判文书</td>
                    </tr>
                    </thead>
                    <tbody>
                    <tr>
                        <td>广州市天河区人民法院</td>
                        <td>2018-06-22 16:30:41</td>
                        <td>2018-06-22 16:30:41</td>
                        <td>12345611</td>
                        <td>民事</td>
                        <td>3974560</td>
                        <td>未履行</td>
                        <td>执行中</td>
                        <td>被告</td>
                        <td>查看/下载</td>
                    </tr>
                    </tbody>
                </table>
            </div>

        </div>
    </div>
    %{--客户行为检测--}%
    <div class="row">
        <div class="hpanel hgreen" style="">
            <div class="panel-heading">
                <div class="panel-tools">
                    <a class="showhide"><i class="fa fa-chevron-up"></i></a>
                </div>
                客户行为检测
            </div>

            <div class="panel-body no-padding" style="overflow-x:auto;">
                %{--查询结果--}%
                <div class="col-md-12 forum-heading" style="line-height: 30px;">
                    <span class="label label-success pull-left" style="margin-top: 7px;margin-right: 15px;">查询结果</span>
                <small class="desc">近1个月家庭现住址变化为：<b class="red">广州天河街小区1号</b>，手机号现变化为：<b class="red">13666666666</b> ，现单位名称变化为：<b class="red">xx科技有限公司</b>，特殊电话呼叫次数：<b class="red">11</b>次，纳税停缴时间：<b>3</b>个月，最后出行地点：<b class="red">北京，2018-05-22</b>，最后抵达地点：<b class="red">广州，2018-6-22</b></small>
                </div>



                <table class="table table-striped table-bordered table-hover text-center">
                    <thead>
                        <tr>
                            <td>检查项</td>
                            <td>家庭住址</td>
                            <td>手机号码</td>
                            <td>单位名称</td>
                            <td>运营商信息</td>
                            <td>地址信息</td>
                            <td>纳税信息</td>
                            <td>出行信息</td>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td>详情信息</td>
                            <td>
                                近1个月申贷家庭住址数量：5<br>
                                常用地址：xx小区xx号<br>
                                其他地址：xx小区xx号<br>
                            </td>
                            <td>
                                近1个月手机号码数量：2   包括：<br>
                                常用号码：138888888888<br>
                                现用号码：136666666666<br>
                            </td>
                            <td>
                                近1个月单位名称数量：2<br>
                                常用单位名称：xx公司<br>
                                现单位名称：xx公司<br>
                            </td>
                            <td>
                                近1个月特殊号码通话共11次<br>
                                特殊号码通话—110：5次<br>
                                特殊号码通话—120：4次<br>
                                特殊号码通话—国际长途：2次<br>
                                特殊号码通话—小贷公司：2次<br>
                                特殊号码通话—律师：3次<br>
                            </td>
                            <td>
                                近1个月收货地址变化情况：<br>
                                常用地址：广州x小区、收货5次<br>
                                现用地址 ：北京xx小区、收货2次<br>
                            </td>
                            <td>
                                近1个月纳税情况：停缴xx个月<br>
                                常工作单位：xxx公司、停缴<br>
                                最后纳税日期：2018-06-22<br>
                                现工作单位：xxx公司、缴费中<br>
                                最后纳税日期：2018-05-22<br>
                            </td>
                            <td>
                                近1个月出行总次数：5<br>
                                最后抵达城市：深圳<br>
                                最后抵达时间：2018-06-22<br>
                                最后出行城市：广州<br>
                                最后出行时间：2018-06-22<br>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>

        </div>
    </div>
    %{--征信记录信息--}%
    <div class="row">
        <div class="hpanel hgreen" style="">
            <div class="panel-heading">
                <div class="panel-tools">
                    <a class="showhide"><i class="fa fa-chevron-up"></i></a>
                </div>
                征信记录信息
            </div>

            <div class="panel-body no-padding" style="overflow-x:auto;">
                %{--查询结果--}%
                <div class="col-md-12 forum-heading" style="line-height: 30px;">
                    <span class="label label-success pull-left" style="margin-top: 7px;margin-right: 15px;">查询结果</span>
                <small class="desc">近3个月信用卡逾期总张数：<b class="red">3</b>张 ，逾期总额：<b class="red">30000</b>元  ，贷款逾期笔数：<b class="red">2</b>笔 ，逾期总额：<b class="red">22000</b>元</small>
                </div>



                <table class="table table-striped table-bordered table-hover text-center">
                    <thead>
                    <tr>
                        <td>查询平台</td>
                        <td>检查项</td>
                        <td>发放机构</td>
                        <td>近3个月连续逾期时间</td>
                        <td>最大逾期金额</td>
                    </tr>
                    </thead>
                    <tbody>
                    <tr>
                        <td>
                            央行征信
                        </td>
                        <td>
                            信用卡1逾期情况
                        </td>
                        <td>
                            XF443224
                        </td>
                        <td>
                           3个月
                        </td>
                        <td>
                            4000元
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>

            %{--<div class="panel-footer">--}%
                %{--<button type="button" class="btn btn-default btn-sm">贷后定期检查表</button>--}%
                %{--<button type="button" class="btn btn-info btn-sm">生成</button>--}%
            %{--</div>--}%

        </div>
    </div>

</div>

<div class="modal fade" id="riskWaringDisposition" tabindex="-1" role="dialog" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">

            <g:form class="form-horizontal" controller="contactRiskWarningDisposition" action="updateRiskWarning">
                
                <div class="modal-header">
                    <h4 class="modal-title">预警处置</h4>
                </div>

                <div class="modal-body">
                    <div class="form-group">
                        <label class="col-sm-2 control-label">处置结果</label>
                        <div class="col-sm-10">
                            <input type="hidden" class="contactRiskWarningDispositionId" name="contactRiskWarningDispositionId">
                            <g:textArea class="form-control" name="disposalOpinions" value="${this?.contactRiskWarningDisposition?.disposalOpinions}" rows="6"/>
                        </div>
                    </div>
                </div>

                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                    <g:submitButton class="btn btn-primary" name="update" value="保存"/>
                </div>
            </g:form>
        </div>
    </div>
</div>

<script>

    $(function () {

        $(".btnRiskWaring").click(function () {
            var contactRiskWarningDispositionId = $(this).attr("dataId").trim();
            $(".contactRiskWarningDispositionId").val(contactRiskWarningDispositionId);

        });

        $('#datepicker').datepicker({
            language: 'zh-CN'
        });
        $("#datepicker").on("changeDate", function (event) {
            $("#my_hidden_input").val(
                $("#datepicker").datepicker('getFormattedDate')
            )
        });

        $('.input-group.date').datepicker({});
        $('.input-daterange').datepicker({});
    });

    //    $('#goBack').click(function(){
    //        window.history.back(-1);
    //    })
    var riskText=$('.risk').text();
    if(riskText=='低风险>>'){
        $('.risk').css('color','#62CB31');
    }else if(riskText=='中风险>>'){
        $('.risk').css('color','#FF9800');
    }
    else if(riskText=='高风险>>'){
        $('.risk').css('color','#E51C23');
    }else{
        $('.risk').css('color','#3498DB');
    }


</script>
<script>
    function show(id){
        var url = window.location.origin+"/mortgage/show?id="+id;
        window.open(url);
    }

</script>
</body>
</html>
